package com.shop.dao;

import com.shop.dto.MemberDto;
import com.shop.dto.MemberLoginDto;
import com.shop.dto.MemberQueryDto;
import com.shop.entity.CoinsEntity;
import com.shop.entity.MemberEntity;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;

/**
 * 
 *
 * @author wzby
 * @date 2022-12-02 13:24:15
 */
@Mapper
public interface MemberMapper {

    int insert(MemberEntity entity);
    int update(MemberEntity entity);
    MemberEntity select(MemberLoginDto dto);
    int delete(Integer id);

    @Select(" select  *  from  member where phone = #{phone} limit 1")
    MemberEntity selectPhone(String phone);
}
